using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using Microsoft.DirectX;
using NovodexWrapper;
using OpenPanekitEditor;
using OpenPanekitEditor.Panel;

namespace OriginalPanels
{
    [PanelAttribute("Original::Core",IsCore=true,LocalD3DModelName="Model\\Core_P.X")]
    public class Core:PanelBase,IPanel
    {
        public Image IconImage { get{return Properties.Resources.ElementIcon_Core;} }

        Matrix l_to_r_matrix = Matrix.Identity;
        public Matrix LocalToRootMatrix
        {
            get { return l_to_r_matrix; }
            set { l_to_r_matrix = value; }
        }
        public Matrix PivotToRootMatrix
        {
            get { return Matrix.Zero; }
            set { }
        }
        public Matrix PivotMatrix
        {
            get { return Matrix.Zero; }
            set { }
        }
        public override NxActor InitNx(NxScene scene,NxActor parent,Matrix pmatrix)
        {
            current_actor = NovodexUtil.createBoxActor(scene, Vector3.Empty, pmatrix, PanelUtil.PanelDensity);
            //current_actor.FlagKinematic = true;
            CreatePanelShape(current_actor,pmatrix);
            return current_actor;
        }
    }
}
